﻿using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using System;

namespace Infrastructure
{
    public static class InternalApp
    {
        /// <summary>
        /// 应用服务
        /// </summary>
        public static IServiceProvider ServiceProvider;

        /// <summary>
        /// JobProvider
        /// </summary>
        public static IServiceProvider JobProvider;

        /// <summary>
        /// 全局配置构建器
        /// </summary>
        public static IConfiguration Configuration;

        /// <summary>
        /// 获取Web主机环境
        /// </summary>
        public static IWebHostEnvironment WebHostEnvironment;

        /// <summary>
        /// App
        /// </summary>
        public static WebApplication App { get; set; }

        /// <summary>
        /// Services
        /// </summary>
        public static IServiceCollection Services { get; set; }

        /////// <summary>
        /////// Fsql
        /////// </summary>
        //public static IFreeSql<ZR.Infrastructure.MesDB> Fsql { get; set; }
    }
}
